package cn.anlab.anappframe.net.sub2;

import java.io.IOException;
import java.nio.channels.SelectionKey;

/**
 * 
 * @version 1.0
 * @author Stan Rong 2012-3-7
 */
public interface IHandler {
	
	public boolean onReceive(byte[] data) throws IOException;
	
	public boolean onConnect() throws IOException;

	public boolean onDisconnect() throws IOException;
	
	public boolean onError(Exception e);
	

}
